public class Pilot {
    String name;
    String job;
    String weight;
    public Pilot(String weight,String name,String job){
        this.weight=weight;
        this.job=job;
        this.name=name;
    }
    public void play(Plane c){
        System.out.println(weight+"的,名字叫做"+name+"的"+job+c.getWay1()+c.getWeight()+"的"+c.getName()+"并"+c.getWay2());
    }
    public void play(Tuolaji c){
        System.out.println(weight+"的,名字叫做"+name+"的"+job+c.getWay1()+c.getWeight()+"的"+c.getName()+"并"+c.getWay2());
    }
    public void play(Tank c){
        System.out.println(weight+"的,名字叫做"+name+"的"+job+c.getWay1()+c.getWeight()+"的"+c.getName()+"并"+c.getWay2());
    }
    public void play(Car c){
        System.out.println(weight+"的,名字叫做"+name+"的"+job+c.getWay1()+c.getWeight()+"的"+c.getName()+"并"+c.getWay2());
    }
    public void play(Boat c){
        System.out.println(weight+"的,名字叫做"+name+"的"+job+c.getWay1()+c.getWeight()+"的"+c.getName()+"并"+c.getWay2());
    }

//    public String getName() {
//        return name;
//    }
}
